package com.launch.carmanager.common.base;

import com.google.gson.annotations.SerializedName;

/**
 *
 * Created by ganquan on 2019/3/28 10:25
 */
public class BaseResponse<T> {

    @SerializedName("message")
    private String msg; // 操作结果提示消息

    @SerializedName("retcode")
    private int retcode; // 状态码

    @SerializedName("errcode")
    private int errcode; // 状态码

    private T data; // 请求所需数据

    public BaseResponse(String msg, int retcode, int errcode, T data) {
        this.msg = msg;
        this.retcode = retcode;
        this.errcode = errcode;
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getRetcode() {
        return retcode;
    }

    public void setRetcode(int retcode) {
        this.retcode = retcode;
    }

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
